﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:PearTunes.Client" >
    <LinearGradientBrush x:Key="mainWindowTopGradient" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFEFEFE" Offset="0"/>
        <GradientStop Color="#FFB4B4B4" Offset="0.983"/>
        <GradientStop Color="#FF656565" Offset="1"/>
        <GradientStop Color="#FFE4E4E4" Offset="0.015"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="leftMenuBackGroundGradient" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFE9ECF1" Offset="0.99"/>
        <GradientStop Color="#FFE9ECF1"/>
        <GradientStop Color="#FFBBBBBB" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="leftMenuBackgroundColor" Color="#FFF1F1F1"/>

    <LinearGradientBrush x:Key="SelectionBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF6BAEE1" Offset="0.032"/>
        <GradientStop Color="#FF428BD1" Offset="1"/>
        <GradientStop Color="#FF7CB9E5"/>
    </LinearGradientBrush>
    
    <Style x:Key="ZeneRadioButtonStyle" TargetType="{x:Type RadioButton}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{DynamicResource RadioButtonFocusVisual}"/>
        <Setter Property="Background" Value="{DynamicResource NormalBrush}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">

                    <!-- BulletDecorator is used to provide baseline alignment between the checkmark and the Content -->
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="200">
                        <Rectangle Margin="0,0,0,0" x:Name="CheckMark" Fill="{DynamicResource SelectionBrush}" Height="22" Width="200" VerticalAlignment="Top"/>
                        <ContentPresenter Margin="40,4,8,0" RecognizesAccessKey="True" Width="Auto" Height="18.96" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>

                        <Image x:Name="imgOff" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/musicOff.png" Height="15"/>
                        <Image x:Name="imgOn" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/musicOn.png" Height="15"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="false">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="CheckMark"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="imgOn"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true"/>
                        <Trigger Property="IsPressed" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#80000000"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="StoreRadioButtonStyle" TargetType="{x:Type RadioButton}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{DynamicResource RadioButtonFocusVisual}"/>
        <Setter Property="Background" Value="{DynamicResource NormalBrush}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">

                    <!-- BulletDecorator is used to provide baseline alignment between the checkmark and the Content -->
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="200">
                        <Rectangle Margin="0,0,0,0" x:Name="CheckMark" Fill="{DynamicResource SelectionBrush}" Height="22" Width="200" VerticalAlignment="Top"/>
                        <ContentPresenter Margin="40,4,8,0" RecognizesAccessKey="True" Width="Auto" Height="18.96" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>

                        <Image x:Name="imgOff" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/storeOff.png" Height="15"/>
                        <Image x:Name="imgOn" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/storeOn.png" Height="15"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="false">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="CheckMark"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="imgOn"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true"/>
                        <Trigger Property="IsPressed" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#80000000"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="PlaylistRadioButtonStyle" TargetType="{x:Type RadioButton}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{DynamicResource RadioButtonFocusVisual}"/>
        <Setter Property="Background" Value="{DynamicResource NormalBrush}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">

                    <!-- BulletDecorator is used to provide baseline alignment between the checkmark and the Content -->
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="200">
                        <Rectangle Margin="0,0,0,0" x:Name="CheckMark" Fill="{DynamicResource SelectionBrush}" Height="22" Width="200" VerticalAlignment="Top"/>
                        <ContentPresenter Margin="40,4,8,0" RecognizesAccessKey="True" Width="Auto" Height="18.96" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>

                        <Image x:Name="imgOff" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/playlistOff.png" Height="15"/>
                        <Image x:Name="imgOn" HorizontalAlignment="Left" Margin="18,1.54,0,1.5" Width="15" Source="Menu/playlistOn.png" Height="15"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="false">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="CheckMark"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="imgOn"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true"/>
                        <Trigger Property="IsPressed" Value="true"/>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#80000000"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="TextBoxBaseControlTemplate" TargetType="{x:Type TextBoxBase}">
        <Border Background="{TemplateBinding Background}" 
                x:Name="Bd" BorderBrush="Black"
                BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
            <ScrollViewer x:Name="PART_ContentHost"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" TargetName="Bd"/>
                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
            </Trigger>
            <Trigger Property="Width" Value="Auto">
                <Setter Property="MinWidth" Value="100"/>
            </Trigger>
            <Trigger Property="Height" Value="Auto">
                <Setter Property="MinHeight" Value="20"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <DataTemplate x:Key="previewListenTemplate">
        <DockPanel>
            <Button Content="Meghallgat">
            </Button>
        </DockPanel>
    </DataTemplate>
    <DataTemplate x:Key="buyTrackTemplate">
        <DockPanel>
            <Button>
                <Button.Content>
                    <Binding Path="Price"/>
                </Button.Content>
            </Button>
        </DockPanel>
    </DataTemplate>
</ResourceDictionary>